package com.twu.biblioteca;

/**
 * Created by jpramos on 3/10/14.
 */
public class Menu {
    String menuOptions = "List books, Checkout Book, Exit";

    public String listMenuOptions() {
        return  menuOptions;
    }

    public String parseUserInput(String userInput) {
        if (userInput.equalsIgnoreCase("List books")){
            return userInput;
        } else if (userInput.equalsIgnoreCase("checkout book")){
            return userInput;
        }
        else if (userInput.equalsIgnoreCase("Exit")) {
            return "Exit";
        } else {
            return "Invalid option";
        }
    }
}
